<template>
  <view class="root">
    <HmAdd />
    <view>------------- {{ count }} ----------</view>
    <view>------------- {{ list }} ----------</view>
    <HmDes />
  </view>
</template>

<script>
import { mapState } from "vuex";
export default {
  computed: {
    // 4. 分模块，获取数据
    ...mapState("test", ["count", "list"]),
  },
};
</script>
